<?php

Route::group(['middleware' => ['auth','home.mail']], function () {
    Route::get('/', function (\Modules\Admin\Entities\Module $module) {
        $class = '\Modules\\' . $module->getDefault()['name'] . '\Http\Controllers\HomeController';
        return app()->build($class)->index();
    });
});
Route::get('sendRegistarMailShow','MailController@sendRegistarMailShow')->name('sendRegistarMailShow');

Route::get('sendRegistarMail','MailController@sendRegistarMail')->name('sendRegistarMail');

Route::get('sendRegistarSubmit/{token}','MailController@sendRegistarSubmit')->name('sendRegistarSubmit');


Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

//图片上传
Route::any('/upload', 'UploadController@make');
Route::any('/upload-simditor', "UploadController@simditor");

//微信服务器配置
Route::any('weixin',"WxController@weixin");
